{% extends 'base.html' %}
{% block content %}
  <h2>Top 10 Most Recent Guestbook Entries</h2>
  {% for greeting in greetings %}
    {% if greeting.author %}
      <b>{{ greeting.author.username }}</b> wrote:
    {% else %}
      An anonymous person wrote:
    {% endif %}
    <blockquote>{{ greeting.content|escape }}</blockquote>
  {% endfor %}

  <form action="/matchmeapp/sign" method="post">{% csrf_token %}
    <table>{{ form }}</table>
    <input type="submit" value="Sign Guestbook" />
  </form>
{% endblock %}
